-
Notifications
You must be signed in to change notification settings - Fork 275
Sam/amount type filtering #5701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
As with the other PRs, address non-deprecation warnings. |
| displayCurrencyCode: selectedCryptoCurrencyCode, | ||
| exchangeAmount: isMaxAmount ? { max: true } : userInput, | ||
| fiatCurrencyCode: selectedFiatCurrencyCode, | ||
| amountType: lastUsedInput, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If lastUsedInput remains 'crypto' while cryptoInputDisabled becomes true (fiat-only plugins), the UI disables crypto input, but rampQuoteRequest still uses amountType: 'crypto'. That can trigger quote fetches with an unsupported amountType. Vice versa for fiat.
Suggestion: when computed disabled flags change, coerce lastUsedInput to a supported type (and optionally clear/convert userInput) so rampQuoteRequest always matches availability. Minimal guard alternative: do not build rampQuoteRequest if lastUsedInput corresponds to a disabled type.
| disabled={cryptoInputDisabled} | ||
| /> | ||
| {/* MAX Button */} | ||
| <MaxButton active={isMaxAmount} onPress={handleMaxPress}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend suggesting either guarding rampQuoteRequest when the selected
lastUsedInput is disabled, or auto-switching lastUsedInput to a supported type.
Or just disable this button when cryptoInputDisabled is true
This is an attempt to get the agent to automatically document lessons learned to the docs/ directory. This way conventions are maintained and over time as the agent is course corrected.
- Create docs/localization-guidelines.md with mandatory UI string localization rules - Create docs/component-styling-guidelines.md with styled HOC usage patterns - Update AGENTS.md with Documentation section indexing all docs/ files - Add rule requiring all docs/ markdown files to be indexed in AGENTS.md - Add localized strings for TradeRegionSelectScene to en_US.ts
This file contains run configuration such as RN_SIMULATOR and RN_PORT to be used by a rn-ios script. This is for development purposes
This is a consistent card design for the new fiat buy UI.
- Implement TradeCreateScene and TradeOptionSelectScene for buy/sell flow - Add Paybis as first ramp plugin with full API integration - Create reusable hooks for ramp plugin management (useRampPlugins, useRampQuotes) - Add payment type icon system with comprehensive mappings - Implement quote fetching and comparison across multiple providers - Add best rate badge component for quote comparison - Create ramp plugin type definitions and store utilities - Add comprehensive documentation for migration and architecture - Include unit tests for payment types and store IDs - Update navigation and deeplink handlers for ramp flows BREAKING CHANGE: Replaces legacy FiatPluginUi with new ramp plugin system
Include plugin IDs in React Query key so quotes refetch when region/currency/wallet changes affect available plugins. Simplify queryFn to always check current plugins while reusing valid cached quotes.
2e697a4 to
c00b32f
Compare
|
Replaced by #5740 |
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: